package 牛客网编程.剑指offer.替换空格;

/**
 * @author Veng Su 1344114844@qq.com
 * @date 2018/7/14 15:32
 */
public class Solution {
    public String replaceSpace(StringBuffer str) {
        String newstr=str.toString();
        return newstr.replaceAll(" ","%20");
    }
}